{template 'header_new'}

<link rel="stylesheet" type="text/css" href="/plugins/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="{DT_SKIN}style.css"/>
<link href="{DT_SKIN}style4.css" type="text/css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="/plugins/bootstrap/css/bootstrap-dropdown-checkbox.css" />
<script src="/plugins/bootstrap/js/bootstrap-dropdown-checkbox.js"></script>

<style>
    body {
        font-size:12px;
    }
    
    .nav {
        /* width: 1003px; */
        height: 44px;
        line-height: 44px;
        font-size: 14px;
        font-weight: bold;
        color: #FFF;
        /* background: url(/skin/default/image/nav_03.jpg) repeat-x left bottom; */
        background-color: #1d75d9;
        margin: 0 auto;
        padding: 0 10px 0 10px;
    }
    
   
   
    .renzheng1 {
        WIDTH: 144px;
        FLOAT: left;
        margin:0px;
        margin-left: 45px;
        margin-top: 5px;
    }
    
    .search-item{
           width:79.4%;
           height:123px;
           float:left;
           padding-top:5px;
           border:#e8e8e8 solid 1px; border-top:none;
       }
        
       .search-item-btn{          
           text-align:center;
       }
       
       .search-item-btn .btn {
            margin: 13px auto;
            width: 80%;  
            height: 100px;
            border: solid 1px #e8e8e8;
            color: white;
            background: #3d95e6;
            font-size: 16px;
            font-weight: bolder;
       }
       
       .search-item-btn .btn:hover {
            margin: 13px auto;
            width: 80%;
            //border-width: 1px;
            border: solid 1px #e8e8e8;
            color: white;
            background: #3da6e6;
            font-size: 16px;
            font-weight: bolder;
       }
       label{
           font-weight:normal;
       }
       .piaochecked {
            border:solid 1px #a9a9a9;
            border-radius:3px;           
           /* height: 30px;
           
            float: left;*/
            cursor: pointer;
            margin-right: 10px;
            text-align: center;
            padding-left: 5px;
            padding-right: 5px;            
            margin-top: 5px;
            /*
            margin-bottom: 5px;*/
            display:inline-block;
            
        }
        
        .piaochecked:hover {           
            background-color:#d3dbe7;
            border:solid 1px #a9a9a9;
            border-radius:3px;           
           /* height: 30px;           
            float: left;*/
            cursor: pointer;
            margin-right: 10px;
            text-align: center;
            padding-left: 5px;
            padding-right: 5px;
            margin-top: 5px;/*
            margin-bottom: 5px;*/
            display:inline-block;
        }

        .on_check {            
            background: #3d95e6; 
            color: white;
        }
        
        .on_check:hover {
            background-color:#3da6e6;
        }
        
        .radioclass {
            width: 14px;
            height: 14px;
            cursor:pointer;    
            vertical-align:middle !important; 
            margin-top:0 !important;
            opacity: 0;
            -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
            filter: alpha(opacity=0);
            
        }
        
        
        
        .styled-checkbox {
            opacity: 0;
            filter: alpha(opacity=0);
        }
        .styled-checkbox + label {
            position: relative;
        }
        .styled-checkbox + label:before,
        .lt-ie8 .checkbox-replacement {
            content: '';
            display: inline-block;
            visibility: visible;
            left: 0;
            width: 1em;
            height: 1em;
            margin: 0px 0.3em -3px -1em;
            line-height: 0.6;
            text-align: center;
            /* Put checkbox styles here: */
            border: 1px solid #87a2b3;
        }
        .styled-checkbox:checked + label:before,
        .lt-ie9 .styled-checkbox.checked + label:before {
            content: '✔';
        }
        
        .dropdown-checkbox-toggle {
            text-decoration: none !important;
        }
        
        .dropdown-checkbox-toggle:hover{
            text-decoration: none !important;
        }
        
        .dropdown-checkbox-content {
            border-radius: 0 !important;
            padding: 0 !important;
            border: solid 1px #aaa;
            margin-left:-20px;
        }
        
        .dropdown-checkbox .dropdown-checkbox-content li .layout:hover {
            background: #d3dbe7;
            color: black;
            cursor: pointer;
        }
        
        .dropdown-checkbox ul.dropdown-checkbox-menu {
            padding: 0 !important;
        }
        
        .open{
            padding-left:0px !important;
            padding-top:0px;
        }
        
        table.table-searchitem { width:100%;border:none }        
        table.table-searchitem > tbody > tr > td {  min-height:20px;vertical-align: middle; border:none; }
        table.table-searchitem > tbody > tr > td:first-child { width:80px; }
        
        h3 {margin:5px;}
        .label {display:table-header-group;}
        
        .catlist{
            overflow: hidden;
            border: 1px solid #ffd5b3;
            border-top: 3px solid #fe5100;
            margin-top: 0px;
            padding: 0px 0px 0px 0px;
        }
    
        .catlist .label{       
            color: #fe5100;
            background: #fff1e6;       
        }

        .catlist .label li{       
            float:left;
            height:36px;
            line-height: 36px;
            float: left;    
            text-align: center;
            font-size: 14px;
            font-weight: bold;
            background:#fff1e6;
            border-bottom: 1px solid #ffd5b3;
        }

        .ellipsis {
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            white-space: nowrap;
        }

        .cut, .catlist-col1, .catlist-col2, .catlist-col3, .catlist-col4, .catlist-col5 {

            float: left;    
            text-align: center;
            height: 36px;
            line-height: 36px;
            border-bottom: dashed 1px #aaa;
        }
        
        
        <?php 
            if ( !empty($displaySearchPanel) ) {
        ?>
            .catlist-col1 {
                width:52px;
            }
            .cut{
                width:5px;
                color:#cccccc;
            }

            .catlist-col2 {
                width:310px;
                padding-left:14px;
                padding-right:4px;
                text-align: left;
            }
            .catlist-col3 {
                width:108px;
            }
            .catlist-col4 {
                width:73px;
            }
            .catlist-col5 {
                width:146px
            }
           
        
        <?php 
            } else {
        ?>
            .catlist-col1 {
                width:80px;
            }
            .cut{
                width:5px;
                color:#cccccc;
            }

            .catlist-col2 {
                width:435px;
                padding-left:14px;
                padding-right:4px;
                text-align: left;
            }
            .catlist-col3 {
                width:155px;
            }
            .catlist-col4 {
                width:100px;
            }
            .catlist-col5 {
                width:205px
            }
           
        <?php 
            }
        ?>

         .catlist_last {
                border-bottom: 0 !important;
            }
            
         .pos{
            //width: 700px;
            height: 36px;
            line-height: 36px;
            background: transparent;
        }
        .pos a{
                color: #fe5100;
                font-size: 12px;            
        }
       
        .box_head, .box_body{
            border: 1px #FFD5B3 solid;
            background: none;
            color: #f53200;
            font-size: 14px;
        }
        .box_body{
            border-top: none;
        }
        .box_head{
            border-bottom: none;
            background: #fff1e6 none repeat scroll 0 0;
            color: #fe5100;
            border-color: #fe5100 #ffd5b3 #ffd5b3;
            border-width: 3px 1px 1px;
        }

        a:link{
            color: #666;
            font-size: 12px;
        }
  
        .dropdown-checkbox-content {
            border-radius: 0 !important;
            padding: 0 !important;
            border: solid 1px #aaa;
            margin-left: -5px;
        }
        
        .fsearch {
            padding: 0px;
            margin: 1px;
            background: #F5FAFE url(/skin/default/image/fsearch_bg.gif) repeat-x;
        }
        
        .box_head, .box_body{
        border: 1px #FFD5B3 solid;
        background: none;
        color: #f53200;
        font-size: 14px;
    }
    
    .pos{
            //width: 700px;
            height: 36px;
            line-height: 36px;
            background: transparent;
    }
    .pos a{
            color: #fe5100;
            font-size: 12px;            
    }
   
    .box_body{
        border-top: none;
    }
    .box_head{
        border-bottom: none;
        background: #fff1e6 none repeat scroll 0 0;
        color: #fe5100;
        border-color: #fe5100 #ffd5b3 #ffd5b3;
        border-width: 3px 1px 1px;
    }
    
    a:link{
        color: #666;
        font-size: 12px;
    }
</style>



<div class="m" style="width:1005px">
<?php 
    if ( !empty($displaySearchPanel) ) {
?>
    <div class="pos"><strong style="font-size:14px;color:#fe5100;" >搜索结果</strong></div>
    <div class="m_l_1 f_l" style="width:716px" >
<?php 
    } else {
?>
    <div class="m_l_1 f_l" style="width:1003px">
<?php 
    }
?>

	<div class="left_box">
           	<div class="fsearch" style="{$displaySearchPanel}">
                   <form action="http://www.china-hxzb.com/zhaobiao/search.php?searchtype=1" id="fsearch">
                            
                        <table class="table-searchitem">
                            <tbody><tr>
                                <td style="padding:5px;padding-left:10px;"><strong>关 键 词：</strong></td>
                                <td style="padding:5px;padding-left:10px;"><input type="text" style="width:90%" name="kw" value="" class="pd3"></td>
                                <td rowspan="5" style="width:140px;padding:10px;border:solid 1px #DDDDDD;border-top:0; border-right:0;">
                                        <input type="hidden" id="searchtype" name="searchtype" value="1"> 
                                        <input type="hidden" id="filteraddress" name="areaid2" value="" style="width:60px"> 
                                        <input type="hidden" id="zp_category" name="zpcategory2" value="" style="width:60px">
                                        <input type="hidden" id="filtercategory" name="category2" value="" style="width:60px">
                                        <div class="search-item-btn"> 
                                            <button class="btn btn-primary">搜  索</button> 
                                            <!--
                                            <input type="image" src="http://www.china-hxzb.com/skin/default/image/btn_search.gif"/>&nbsp;&nbsp;
                                            <a href="http://www.china-hxzb.com/zhaobiao/search.php"><img src="http://www.china-hxzb.com/skin/default/image/btn_reset_search.gif"/></a>
                                            -->
                                        </div>
                                    
                                </td>
                            </tr>
                            <!---->
                            <tr>
                                <td style="border-bottom:dotted 1px #a8a8a8;min-height:40px;padding:5px;padding-left:10px;"></td>
                                <td style="border-bottom:dotted 1px #a8a8a8;min-height:40px;padding:5px;padding-left:15px">
                                
                                                                        <input type="radio" name="fields" value="0" id="fd_0" checked=""><label for="fd_0"> 标题</label>&nbsp;
                                                                        <input type="radio" name="fields" value="1" id="fd_1"><label for="fd_1"> 全文</label>&nbsp;
                                                                        
                                    &nbsp;&nbsp;&nbsp;
                                    <!--<input type="radio" name="b_date" value=""         id="b_date0" /><label for="b_date0">不限</label>&nbsp;                                    
                                    <input type="radio" name="b_date" value="day"      id="b_date1" /><label for="b_date1">近一天</label>&nbsp;-->
                                    <input type="radio" name="b_date" value="week" id="b_date2"><label for="b_date2">近一周</label>&nbsp;
                                    <input type="radio" name="b_date" value="month" id="b_date3"><label for="b_date3">近一月</label>&nbsp;
                                    <input type="radio" name="b_date" value="quarter" id="b_date4" checked=""><label for="b_date4">近三月</label>&nbsp;
                                    <input type="radio" name="b_date" value="6month" id="b_date5"><label for="b_date5">近半年</label>&nbsp;
                                    <input type="radio" name="b_date" value="year" id="b_date6"><label for="b_date6">近一年</label>&nbsp;
                                </td>
                            </tr>
                            
                            <tr>
                                <td style="border-bottom:dotted 1px #a8a8a8;min-height:40px;padding:5px;padding-left:10px;"><strong>服务区域：</strong></td>
                                <td style="border-bottom:dotted 1px #a8a8a8;min-height:40px;padding:5px;padding-top:0px;">
                                    <span class="piaochecked">
                                        <input type="checkbox" id="area0" name="area0" class="styled-checkbox" onclick="addDistrict(0);" checked="checked">
                                        <label for="area0" style="font-weight:bold">全部</label>
                                    </span>
                                    <span class="piaochecked"><input type="checkbox" id="area41" class="styled-checkbox area" onclick="addDistrict(41);"><label for="area41">北京</label></span><span class="piaochecked"><input type="checkbox" id="area42" class="styled-checkbox area" onclick="addDistrict(42);"><label for="area42">天津</label></span><span class="piaochecked"><input type="checkbox" id="area43" class="styled-checkbox area" onclick="addDistrict(43);"><label for="area43">河北</label></span><span class="piaochecked"><input type="checkbox" id="area44" class="styled-checkbox area" onclick="addDistrict(44);"><label for="area44">山西</label></span><span class="piaochecked"><input type="checkbox" id="area45" class="styled-checkbox area" onclick="addDistrict(45);"><label for="area45">内蒙古</label></span><span class="piaochecked"><input type="checkbox" id="area46" class="styled-checkbox area" onclick="addDistrict(46);"><label for="area46">上海</label></span><span class="piaochecked"><input type="checkbox" id="area47" class="styled-checkbox area" onclick="addDistrict(47);"><label for="area47">山东</label></span><span class="piaochecked"><input type="checkbox" id="area48" class="styled-checkbox area" onclick="addDistrict(48);"><label for="area48">江苏</label></span><span class="piaochecked"><input type="checkbox" id="area49" class="styled-checkbox area" onclick="addDistrict(49);"><label for="area49">安徽</label></span><span class="piaochecked"><input type="checkbox" id="area50" class="styled-checkbox area" onclick="addDistrict(50);"><label for="area50">江西</label></span><span class="piaochecked"><input type="checkbox" id="area51" class="styled-checkbox area" onclick="addDistrict(51);"><label for="area51">浙江</label></span><span class="piaochecked"><input type="checkbox" id="area52" class="styled-checkbox area" onclick="addDistrict(52);"><label for="area52">福建</label></span><span class="piaochecked"><input type="checkbox" id="area53" class="styled-checkbox area" onclick="addDistrict(53);"><label for="area53">湖北</label></span><span class="piaochecked"><input type="checkbox" id="area54" class="styled-checkbox area" onclick="addDistrict(54);"><label for="area54">湖南</label></span><span class="piaochecked"><input type="checkbox" id="area55" class="styled-checkbox area" onclick="addDistrict(55);"><label for="area55">河南</label></span><span class="piaochecked"><input type="checkbox" id="area56" class="styled-checkbox area" onclick="addDistrict(56);"><label for="area56">广东</label></span><span class="piaochecked"><input type="checkbox" id="area57" class="styled-checkbox area" onclick="addDistrict(57);"><label for="area57">广西</label></span><span class="piaochecked"><input type="checkbox" id="area58" class="styled-checkbox area" onclick="addDistrict(58);"><label for="area58">海南</label></span><span class="piaochecked"><input type="checkbox" id="area59" class="styled-checkbox area" onclick="addDistrict(59);"><label for="area59">辽宁</label></span><span class="piaochecked"><input type="checkbox" id="area60" class="styled-checkbox area" onclick="addDistrict(60);"><label for="area60">吉林</label></span><span class="piaochecked"><input type="checkbox" id="area61" class="styled-checkbox area" onclick="addDistrict(61);"><label for="area61">黑龙江</label></span><span class="piaochecked"><input type="checkbox" id="area62" class="styled-checkbox area" onclick="addDistrict(62);"><label for="area62">陕西</label></span><span class="piaochecked"><input type="checkbox" id="area63" class="styled-checkbox area" onclick="addDistrict(63);"><label for="area63">甘肃</label></span><span class="piaochecked"><input type="checkbox" id="area64" class="styled-checkbox area" onclick="addDistrict(64);"><label for="area64">宁夏</label></span><span class="piaochecked"><input type="checkbox" id="area65" class="styled-checkbox area" onclick="addDistrict(65);"><label for="area65">新疆</label></span><span class="piaochecked"><input type="checkbox" id="area66" class="styled-checkbox area" onclick="addDistrict(66);"><label for="area66">青海</label></span><span class="piaochecked"><input type="checkbox" id="area67" class="styled-checkbox area" onclick="addDistrict(67);"><label for="area67">重庆</label></span><span class="piaochecked"><input type="checkbox" id="area68" class="styled-checkbox area" onclick="addDistrict(68);"><label for="area68">四川</label></span><span class="piaochecked"><input type="checkbox" id="area69" class="styled-checkbox area" onclick="addDistrict(69);"><label for="area69">贵州</label></span><span class="piaochecked"><input type="checkbox" id="area70" class="styled-checkbox area" onclick="addDistrict(70);"><label for="area70">云南</label></span><span class="piaochecked"><input type="checkbox" id="area71" class="styled-checkbox area" onclick="addDistrict(71);"><label for="area71">西藏</label></span><span class="piaochecked"><input type="checkbox" id="area72" class="styled-checkbox area" onclick="addDistrict(72);"><label for="area72">香港</label></span>                                </td>
                                
                            </tr>
                            <tr>
                                <td style="border-bottom:dotted 1px #a8a8a8;min-height:40px;padding:5px;padding-left:10px;"> <strong>行业分类：</strong></td>
                                <td style="border-bottom:dotted 1px #a8a8a8;min-height:40px;padding:5px;padding-top:0px;">
                                    <span class="piaochecked">
                                        <input type="checkbox" id="cat_0" name="cat_0" class="styled-checkbox" onclick="addFilterCategory(0);" checked="checked">
                                        <label for="cat_0" style="font-weight:bold">全部</label>
                                    </span>
                                    <span class="piaochecked"><input type="checkbox" id="cat_13" class="styled-checkbox  cat" onclick="addFilterCategory(13);"><label for="cat_13" id="category13">法律</label></span><span class="piaochecked"><input type="checkbox" id="cat_1" class="styled-checkbox  cat" onclick="addFilterCategory(1);"><label for="cat_1" id="category1">造价</label></span><span class="piaochecked"><input type="checkbox" id="cat_2" class="styled-checkbox  cat" onclick="addFilterCategory(2);"><label for="cat_2" id="category2">审计</label></span><span class="piaochecked"><input type="checkbox" id="cat_3" class="styled-checkbox  cat" onclick="addFilterCategory(3);"><label for="cat_3" id="category3">评估</label></span><span class="piaochecked"><input type="checkbox" id="cat_25" class="styled-checkbox  cat" onclick="addFilterCategory(25);"><label for="cat_25" id="category25">税务</label></span><span class="piaochecked"><input type="checkbox" id="cat_5" class="styled-checkbox  cat" onclick="addFilterCategory(5);"><label for="cat_5" id="category5">工程咨询</label></span><span class="piaochecked"><input type="checkbox" id="cat_4" class="styled-checkbox  cat" onclick="addFilterCategory(4);"><label for="cat_4" id="category4">招标代理</label></span><span class="piaochecked"><input type="checkbox" id="cat_7" class="styled-checkbox  cat" onclick="addFilterCategory(7);"><label for="cat_7" id="category7">PPP</label></span><span class="piaochecked"><input type="checkbox" id="cat_9" class="styled-checkbox  cat" onclick="addFilterCategory(9);"><label for="cat_9" id="category9">保安</label></span><span class="piaochecked"><input type="checkbox" id="cat_8" class="styled-checkbox  cat" onclick="addFilterCategory(8);"><label for="cat_8" id="category8">物业</label></span><span class="piaochecked"><input type="checkbox" id="cat_11" class="styled-checkbox  cat" onclick="addFilterCategory(11);"><label for="cat_11" id="category11">保洁</label></span><span class="piaochecked"><input type="checkbox" id="cat_35" class="styled-checkbox  cat" onclick="addFilterCategory(35);"><label for="cat_35" id="category35">服务类</label></span><span class="piaochecked"><input type="checkbox" id="cat_29" class="styled-checkbox  cat" onclick="addFilterCategory(29);"><label for="cat_29" id="category29">券商</label></span><span class="piaochecked"><input type="checkbox" id="cat_22" class="styled-checkbox  cat" onclick="addFilterCategory(22);"><label for="cat_22" id="category22">设计</label></span><span class="piaochecked"><input type="checkbox" id="cat_42" class="styled-checkbox  cat" onclick="addFilterCategory(42);"><label for="cat_42" id="category42">布展</label></span><span class="piaochecked"><input type="checkbox" id="cat_40" class="styled-checkbox  cat" onclick="addFilterCategory(40);"><label for="cat_40" id="category40">幕墙</label></span><span class="piaochecked"><input type="checkbox" id="cat_41" class="styled-checkbox  cat" onclick="addFilterCategory(41);"><label for="cat_41" id="category41">钢结构</label></span><span class="piaochecked"><input type="checkbox" id="cat_14" class="styled-checkbox  cat" onclick="addFilterCategory(14);"><label for="cat_14" id="category14">测绘 </label></span><span class="piaochecked"><input type="checkbox" id="cat_44" class="styled-checkbox  cat" onclick="addFilterCategory(44);"><label for="cat_44" id="category44">其他</label></span><span class="piaochecked"><input type="checkbox" id="cat_51" class="styled-checkbox  cat" onclick="addFilterCategory(51);"><label for="cat_51" id="category51">水处理</label></span><span class="piaochecked"><input type="checkbox" id="cat_33" class="styled-checkbox  cat" onclick="addFilterCategory(33);"><label for="cat_33" id="category33">服装</label></span><span class="piaochecked"><input type="checkbox" id="cat_48" class="styled-checkbox  cat" onclick="addFilterCategory(48);"><label for="cat_48" id="category48">装饰装修</label></span><span class="piaochecked"><input type="checkbox" id="cat_47" class="styled-checkbox  cat" onclick="addFilterCategory(47);"><label for="cat_47" id="category47">雕塑</label></span><span class="piaochecked"><input type="checkbox" id="cat_31" class="styled-checkbox  cat" onclick="addFilterCategory(31);"><label for="cat_31" id="category31">安防</label></span><span class="piaochecked"><input type="checkbox" id="cat_28" class="styled-checkbox  cat" onclick="addFilterCategory(28);"><label for="cat_28" id="category28">拍卖</label></span><span class="piaochecked"><input type="checkbox" id="cat_30" class="styled-checkbox  cat" onclick="addFilterCategory(30);"><label for="cat_30" id="category30">亮化</label></span><span class="piaochecked"><input type="checkbox" id="cat_32" class="styled-checkbox  cat" onclick="addFilterCategory(32);"><label for="cat_32" id="category32">立体车库</label></span><span class="piaochecked"><input type="checkbox" id="cat_37" class="styled-checkbox  cat" onclick="addFilterCategory(37);"><label for="cat_37" id="category37">电缆</label></span><span class="piaochecked"><input type="checkbox" id="cat_39" class="styled-checkbox  cat" onclick="addFilterCategory(39);"><label for="cat_39" id="category39">消防</label></span><span class="piaochecked"><input type="checkbox" id="cat_38" class="styled-checkbox  cat" onclick="addFilterCategory(38);"><label for="cat_38" id="category38">防腐</label></span><span class="piaochecked"><input type="checkbox" id="cat_23" class="styled-checkbox  cat" onclick="addFilterCategory(23);"><label for="cat_23" id="category23">印刷</label></span><span class="piaochecked"><input type="checkbox" id="cat_49" class="styled-checkbox  cat" onclick="addFilterCategory(49);"><label for="cat_49" id="category49">标识标牌</label></span><span class="piaochecked"><input type="checkbox" id="cat_6" class="styled-checkbox  cat" onclick="addFilterCategory(6);"><label for="cat_6" id="category6">监理</label></span><span class="piaochecked"><input type="checkbox" id="cat_52" class="styled-checkbox  cat" onclick="addFilterCategory(52);"><label for="cat_52" id="category52">翻译</label></span><span class="piaochecked"><input type="checkbox" id="cat_53" class="styled-checkbox  cat" onclick="addFilterCategory(53);"><label for="cat_53" id="category53">白蚁防治</label></span><span class="piaochecked"><input type="checkbox" id="cat_27" class="styled-checkbox  cat" onclick="addFilterCategory(27);"><label for="cat_27" id="category27">餐饮</label></span><span class="piaochecked"><input type="checkbox" id="cat_36" class="styled-checkbox  cat" onclick="addFilterCategory(36);"><label for="cat_36" id="category36">商标专利</label></span><span class="piaochecked"><input type="checkbox" id="cat_26" class="styled-checkbox  cat" onclick="addFilterCategory(26);"><label for="cat_26" id="category26">园林绿化</label></span><span class="piaochecked"><input type="checkbox" id="cat_10" class="styled-checkbox  cat" onclick="addFilterCategory(10);"><label for="cat_10" id="category10">劳务派遣</label></span><span class="piaochecked"><input type="checkbox" id="cat_43" class="styled-checkbox  cat" onclick="addFilterCategory(43);"><label for="cat_43" id="category43">人力资源</label></span><span class="piaochecked"><input type="checkbox" id="cat_46" class="styled-checkbox  cat" onclick="addFilterCategory(46);"><label for="cat_46" id="category46">中央空调</label></span><span class="piaochecked"><input type="checkbox" id="cat_45" class="styled-checkbox  cat" onclick="addFilterCategory(45);"><label for="cat_45" id="category45">护栏</label></span><span class="piaochecked"><input type="checkbox" id="cat_12" class="styled-checkbox  cat" onclick="addFilterCategory(12);"><label for="cat_12" id="category12">保险</label></span><span class="piaochecked"><input type="checkbox" id="cat_34" class="styled-checkbox  cat" onclick="addFilterCategory(34);"><label for="cat_34" id="category34">货物类</label></span><span class="piaochecked"><input type="checkbox" id="cat_24" class="styled-checkbox  cat" onclick="addFilterCategory(24);"><label for="cat_24" id="category24">工程类</label></span><span class="piaochecked"><input type="checkbox" id="cat_54" class="styled-checkbox  cat" onclick="addFilterCategory(54);"><label for="cat_54" id="category54">电梯</label></span>                                </td>            
                            </tr>
                            <tr>
                                <td style="border-bottom:#DDDDDD 1px solid;min-height:40px;padding:5px;padding-left:10px;"><strong>招标分类：</strong></td>
                                <td style="border-bottom:#DDDDDD 1px solid;min-height:40px;padding:5px;padding-top:0px;">
                                    <span class="piaochecked">
                                        <input type="checkbox" id="catid0" name="catid0" class="styled-checkbox" onclick="addCategory(0);" checked="checked">
                                        <label for="catid0" style="font-weight:bold">全部</label>
                                    </span>
                                    <span class="piaochecked"><input type="checkbox" id="catid7" class="styled-checkbox zpcat" onclick="addCategory(7);"><label for="catid7">招标公告</label></span><span class="piaochecked"><input type="checkbox" id="catid8" class="styled-checkbox zpcat" onclick="addCategory(8);"><label for="catid8">中标公告</label></span><span class="piaochecked"><input type="checkbox" id="catid9" class="styled-checkbox zpcat" onclick="addCategory(9);"><label for="catid9">变更公告</label></span><span class="piaochecked"><input type="checkbox" id="catid10" class="styled-checkbox zpcat" onclick="addCategory(10);"><label for="catid10">招标预告</label></span><span class="piaochecked"><input type="checkbox" id="catid11" class="styled-checkbox zpcat" onclick="addCategory(11);"><label for="catid11">邀请招标</label></span><span class="piaochecked"><input type="checkbox" id="catid12" class="styled-checkbox zpcat" onclick="addCategory(12);"><label for="catid12">拟在建项目</label></span><span class="piaochecked"><input type="checkbox" id="catid13" class="styled-checkbox zpcat" onclick="addCategory(13);"><label for="catid13">VIP项目</label></span><span class="piaochecked"><input type="checkbox" id="catid15" class="styled-checkbox zpcat" onclick="addCategory(15);"><label for="catid15">独家预告</label></span><span class="piaochecked"><input type="checkbox" id="catid14" class="styled-checkbox zpcat" onclick="addCategory(14);"><label for="catid14">数据库</label></span>                                </td>
                            </tr>
                        </tbody></table>    
</form>
		</div>
                <?php if ( empty($displaySearchPanel) ) { ?>
                <div class="pos"><strong style="font-size:14px;color:#fe5100;" >搜索结果</strong></div>
                <?php } ?>
		{if $tags}
		{template 'list-cat', 'tag'}
		{else}
		{template 'noresult', 'message'}
		{/if}
                
               
	</div>
</div>

<?php 
    if ( !empty($displaySearchPanel) ) {
?>
<div class="m_n f_l" >&nbsp;</div>
<div class="m_r_1 f_l" style="width:275px">
	<div class="sponsor">{ad($moduleid,$catid,$kw,7)}</div>
	<div class="box_head"><div><strong>今日搜索排行</strong></div></div>
	<div class="box_body">
		<div class="rank_list">
			<!--{tag("moduleid=$moduleid&table=keyword&condition=moduleid=$moduleid and status=3 and updatetime>$today_endtime-86400&pagesize=10&order=today_search desc&key=today_search&template=list-search_rank")}-->
		</div>		
	</div>
	<div class="b10">&nbsp;</div>
	<div class="box_head"><div><strong>本周搜索排行</strong></div></div>
	<div class="box_body">
		<div class="rank_list">
			<!--{tag("moduleid=$moduleid&table=keyword&condition=moduleid=$moduleid and status=3 and updatetime>$today_endtime-86400*7&pagesize=10&order=week_search desc&key=week_search&template=list-search_rank")}-->
		</div>		
	</div>
	<div class="b10">&nbsp;</div>
	<div class="box_head"><div><strong>本月搜索排行</strong></div></div>
	<div class="box_body">
		<div class="rank_list">
			<!--{tag("moduleid=$moduleid&table=keyword&condition=moduleid=$moduleid and status=3 and updatetime>$today_endtime-86400*30&pagesize=10&order=month_search desc&key=month_search&template=list-search_rank")}-->
		</div>		
	</div>
</div>

<?php 
    }
?>

</div>

<script>
  function list(size, checked) {
    var result = [];
    for (var i = 0; i < size; i++) {
      result.push({
        id: i,
        label: 'Item #' + i,
        isChecked: checked === undefined ? !!(Math.round(Math.random() * 1)) : checked
      });
    }
    return result;
  }





  function p(wat) {
    return '<p>' + JSON.stringify(wat) + '</p>';
  }

  function updateStatus() {
    var $p = $('p.status').empty();

    $p.append(p(widget.checked()));
    
  }

   function initCategory( catCtrlId, catCtrlName, catData)
   {
       $(catCtrlId).dropdownCheckbox({
            data: catData,
            autosearch: false,
            title: catCtrlName,
            hideHeader: true,
            showNbSelected: true,
            templateButton: '<a class="dropdown-checkbox-toggle" data-toggle="dropdown" href="#"> '+ catCtrlName +' <span class="dropdown-checkbox-nbselected"></span> &nbsp;<b class="caret"></b>'
          });
   }
   
   
  
  
function addCategory( categoryId )
{
    var itemText =  "(" + categoryId + ")" ;
    var filterValue = $('#zp_category').val();
    
    if( categoryId == 0 )
    {
        itemText = '(0)';
        $('#zp_category').val( itemText );       
        $(".zpcat").prop("checked", false); 
       $("#catid0").prop("checked", true);
        reuturn;
    }
    
    $("#catid0").prop("checked", false);     
    filterValue = filterValue.replace("(0)", "");
    var iPos = filterValue.indexOf(itemText);
    if( iPos < 0)
    {
        if( filterValue == '')
        {
            $('#zp_category').val( itemText );
        }
        else
        {
            filterValue = filterValue + "," +  itemText;
            filterValue = filterValue.replace(/,,/, ",");
            $('#zp_category').val( filterValue  );
        }
    }
    else
    {
         filterValue = filterValue.replace(itemText, "");         
         filterValue = filterValue.replace(/,,/, ",");        
         $('#zp_category').val(  filterValue );
    }
    
}

function addFilterCategory( categoryId )
{
    var itemText =  "(" + categoryId + ")" ;
    var filterValue = $('#filtercategory').val();
    
    if( categoryId == 0 )
    {
        itemText = '(0)';
        $('#filtercategory').val( itemText );       
        $(".cat").prop("checked", false); 
        $("#cat_0").prop("checked", true);
        reuturn;
    }
    
    $("#cat_0").prop("checked", false);     
    filterValue = filterValue.replace("(0)", "");
    
    
    
    
    
    var iPos = filterValue.indexOf(itemText);
    if( iPos < 0)
    {
        if( filterValue == '')
        {
            $('#filtercategory').val( itemText );
        }
        else
        {
            filterValue = filterValue + "," +  itemText;
            filterValue = filterValue.replace(/,,/, ",");
            $('#filtercategory').val( filterValue  );
        }
    }
    else
    {
         filterValue = filterValue.replace(itemText, "");         
         filterValue = filterValue.replace(/,,/, ",");        
         $('#filtercategory').val(  filterValue );
    }
}


function addDistrict(areaId)
{
    var itemText =  "(" + areaId + ")" ;
    var filterValue = $('#filteraddress').val();
    
    if( areaId == 0 )
    {
        itemText = '(0)';
        $('#filteraddress').val( itemText );       
        $(".area").prop("checked", false); 
        $("#area0").prop("checked", true);
        reuturn;
    }
    
    $("#area0").prop("checked", false);     
    filterValue = filterValue.replace("(0)", "");
    var iPos = filterValue.indexOf(itemText);
    if( iPos < 0)
    {
        if( filterValue == '')
        {
            $('#filteraddress').val( itemText );
        }
        else
        {
            filterValue = filterValue + "," +  itemText;
            filterValue = filterValue.replace(/,,/, ",");
            $('#filteraddress').val( filterValue  );
        }
    }
    else
    {
         filterValue = filterValue.replace(itemText, "");
         filterValue = filterValue.replace(/,,/, ",");        
         $('#filteraddress').val(  filterValue );
    }
}

$(document).ready( function() {
    $(".child-checkbox").on("click", function(){
        var catid = $(this).attr("catid");
        addFilterCategory(catid);
    });
});
  
  
  

</script>

{template 'footer'}